home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / ddcp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  1.3 KB  |  33 lines

  1. //---------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
  4. //---------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef DDCustomPaletteH
  7. #define DDCustomPaletteH
  8. //---------------------------------------------------------------------------
  9. #include <Classes.hpp>
  10. #include <Controls.hpp>
  11. #include <StdCtrls.hpp>
  12. #include <Forms.hpp>
  13. #include "ddraw.h"
  14. //---------------------------------------------------------------------------
  15. class TForm1 : public TForm
  16. {
  17. __published:    // IDE-managed Components
  18.     void __fastcall FormPaint(TObject *Sender);
  19. private:    // User declarations
  20. public:        // User declarations
  21.     __fastcall TForm1(TComponent* Owner);
  22.     void __fastcall InitializeDirectDraw();
  23.     void __fastcall SetupPrimarySurface();
  24.     void __fastcall ShowPalette();
  25.     int ddColors, ddWidth, ddHeight;
  26.     IDirectDraw *DirectDraw;
  27.     IDirectDrawSurface *PrimarySurface;
  28. };
  29. //---------------------------------------------------------------------------
  30. extern PACKAGE TForm1 *Form1;
  31. //---------------------------------------------------------------------------
  32. #endif
  33.